Repository navigation
Conversation
- ScriptDefaultConstants 默认取人脚本改为 [request.getCreatedOperatorKey()] - operator-identity.md §3.4 补齐三种返回形态、默认模板、Key 构造 API 与 findPreviousNodeOperators 用法;§5 补默认脚本升级的兼容说明 Closes #303
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
issue #303 第二部分:在
#304提供解析器与脚本 API 之后,把系统默认取人脚本从「返回人员 id」升级为「返回OperatorKey」,并同步文档。改动
后端
ScriptDefaultConstants.SCRIPT_DEFAULT_OPERATOR_LOAD:新建节点的「流程创建者」审批人将携带发起时的身份,不再退化为默认身份。
docs/Integration/operator-identity.mdOperatorKey构造 API 一览、按身份取人示例、复用上一节点审批人示例;前端(codingapi/flow-frontend
feature/issue-303-default-script@ 848b149)default-script.ts:SCRIPT_DEFAULT_OPERATOR_LOAD改为request.getCreatedOperatorKey()(设计器「指定人员 → 流程创建者」新建的脚本直接带身份);varibale.ts:变量列表补getCreatedOperatorKey/getCurrentOperatorKey/getSubmitOperatorKey/findPreviousNodeOperators;current-workflow-presenter.ts:「子流程发起人」选项产出的是人员 id 参数(不是取人脚本返回值),改成 Key 会破坏后端对子流程发起人的解析,属于另一条链路。验证
./mvnw -pl flow-engine-framework test:515 例通过(默认脚本变更无回归);npx rstest run --root packages/flow-design:49 例通过;pnpm -F @coding-flow/flow-design build:287 文件生成成功。行为变化(需知悉)
默认模板改为
OperatorKey后,创建者节点的审批身份 = 发起时的身份。已启用多身份、且一直用默认模板的业务,同一流程在升级前后发起的实例身份会不同;存量流程定义中的脚本文本不会被自动改写。依赖
基于
feature/issue-303-operator-script-resolver(#304),需先合并 #304。Closes #303